<#include "../../page.ftl" />
<table class="table table-datatable table-gray check_table">
    <thead>
    <tr>
        <th>年度</th>
        <th>项目</th>
    <#list 12..0 as t>
        <#if (weekNum-t>13 && weekNum-t<=26)>
            <th style="text-align:right">Q${((weekNum-t+12)/13)?int}WK${weekNum-t-13!''}</th>
        <#elseif (weekNum-t>26 && weekNum-t<=39)>
            <th style="text-align:right">Q${((weekNum-t+12)/13)?int}WK${weekNum-t-26!''}</th>
        <#elseif (weekNum-t>39)>
            <th style="text-align:right">Q${((weekNum-t+12)/13)?int}WK${weekNum-t-39!''}</th>
        <#else>
            <th style="text-align:right">Q${((weekNum-t+12)/13)?int}WK${weekNum-t!''}</th>
        </#if>
    </#list>
    </tr>
    </thead>
    <tbody>
    <#if cwXmbsTable.rows??>
        <#list cwXmbsTable.rows as cwXmb>
        <tr>
            <td>${cwXmb.nian!''}</td>
            <td>${cwXmb.projects!''}</td>
            <td style="text-align:right">${cwXmb.ak1!''}</td>
            <td style="text-align:right">${cwXmb.ak2!''}</td>
            <td style="text-align:right">${cwXmb.ak3!''}</td>
            <td style="text-align:right">${cwXmb.ak4!''}</td>
            <td style="text-align:right">${cwXmb.ak5!''}</td>
            <td style="text-align:right">${cwXmb.ak6!''}</td>
            <td style="text-align:right">${cwXmb.ak7!''}</td>
            <td style="text-align:right">${cwXmb.ak8!''}</td>
            <td style="text-align:right">${cwXmb.ak9!''}</td>
            <td style="text-align:right">${cwXmb.ak10!''}</td>
            <td style="text-align:right">${cwXmb.ak11!''}</td>
            <td style="text-align:right">${cwXmb.ak12!''}</td>
            <td style="text-align:right">${cwXmb.ak13!''}</td>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if cwXmbsTable??>
    <@page table=cwXmbsTable formId="search_cwXmb_table"/>
</#if>